package com.mashibing.apipassenger.remote;

import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.request.VerificationCodeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {
@RequestMapping(method = RequestMethod.POST,value = "/user")
 ResponseResult loginOrRegister(@RequestBody VerificationCodeDTO verificationCodeDTO) ;

@RequestMapping(method = RequestMethod.GET,value = "/user/{phone}")
 ResponseResult getUserByPhone(@PathVariable("phone")String passengerPhone);
}
